package WEEK_197;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

import LCommon.TreeMethod;
import LCommon.TreeNode;

public class Test {

	public static void main(String[] args) {
//		int[] nums = {1,2,3,1,1,3};
//		System.out.println(new Solution().numIdenticalPairs(nums));
		String s = "0110111";
		System.out.println(new Solution().numSub(s));
//		int n = 3, start = 0, end = 2;
//		int[][] edges = {{0,1},{1,2},{0,2}};
//		double[] succProb = {0.5,0.5,0.3};
//		System.out.println(new Solution().maxProbability(n, edges, succProb, start, end));	
	}

}
